import request from '@/utils/request'
// 查询预警列表
export function listTasks(query) {
  const status = query.status;
  const params = { pageNum: query.pageNum, pageSize: query.pageSize };
  return request({
    url: '/dashboard/orders/listByUserOrStatus/' + status,
    method: 'get',
    params: params
  })
}

// 查询退款列表
export function listRefunds(query) {
  const params = { pageNum: query.pageNum, pageSize: query.pageSize };
  return request({
    url: '/dashboard/orders/refundListByUser',
    method: 'get',
    params: params
  })
}

export function listTaskOrder(query) {
  const params = { pageNum: query.pageNum, pageSize: query.pageSize, acceptedProgrammerId: query.acceptedProgrammerId };
  return request({
    url: '/dashboard/orderTask/list',
    method: 'get',
    params: params
  })
}